//
//  DBHelper.h
//  Say
//
//  Created by Duc Trinh on 6/6/12.
//  Copyright (c) 2012 DHBK. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "sqlite3.h"



@interface DBHelper : NSObject
{
    
}
- (NSString *) getDBPath;
+ (DBHelper *)shared;
- (void) initDB;
- (int) openDB;
- (void) deleteDB;

- (NSError *)saveOffers:(NSString *)offer;
- (NSMutableArray *)getOffers;

- (void)deleteOffer:(int)index;
- (NSError *)deleteRowsFromTable:(int)index database:(sqlite3 *)database;

@end
